package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import service.UserService;

public class UserServiceImpl implements UserService {

    private UserDao dao = new UserDaoImpl();

    @Override
    public String select(String name, String password) throws Exception {
        return dao.select(name,password);
    }

    @Override
    public String selectMoney(String idNumber) throws Exception {
        return dao.selectMoney(idNumber);
    }

    @Override
    public String updateMoney(String idNumber, String money) throws Exception {
        return dao.updateMoney(idNumber,money);
    }

    @Override
    public String insert(String name, String password, String identity) throws Exception {
        return dao.insert(name,password,identity);
    }

}
